<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.Date" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Index</title>
<script type="text/javascript" language="javascript">
	window.onload = function(){
		showTime();
	};
	function showTime(){
		var date = new Date();
		var d = date.toLocaleDateString();
		var t = date.toLocaleTimeString();
		document.getElementById("idtime").textContent=d+t;
		setTimeout("showTime()",1000);
	}
</script>
</head>
<body>
<h1>欢迎</h1>
<label id="idtime" style="color:red"></label>

<hr color="red">
<br><br><a href="${pageContext.request.contextPath }/demo/hello?msg=Hello">HELLO</a>
<br><br><a href="${pageContext.request.contextPath }/demo/default?msg=default">全默认转向</a>
<br><br><a href="${pageContext.request.contextPath }/demo/gobalAction?name=同包">同包全局视图</a>
<br><br><a href="${pageContext.request.contextPath }/demo/two/dpGobalAction?name=非同包">非同包全局视图</a>
<br><br><a href="${pageContext.request.contextPath }/demo/resultDefaultAction">默认方式转向</a>
<br><br><a href="${pageContext.request.contextPath }/demo/resultRedirectAction">重定向</a>
<br><br><a href="${pageContext.request.contextPath }/demo/resultRedirectSPAction">重定向到同包下的Action</a>
<br><br><a href="${pageContext.request.contextPath }/demo/resultRedirectDPAction">重定向到不同包下的Action</a>
<br><br><a href="${pageContext.request.contextPath }/demo/viewsource">查看视图源码</a>
<br><br><a href="${pageContext.request.contextPath }/demo/dynamicAction_dynamicMethod">使用通配符 实现动态调用</a>
<br><br><a href="${pageContext.request.contextPath }/demo/scopeAction">设置/访问SCOPE属性</a>
<br><br><a href="${pageContext.request.contextPath }/demo/scopeAction!getServletAPI">ServletAPI设置/访问SCOPE属性</a>
<br><br><a href="${pageContext.request.contextPath }/demo/person.jsp">接收复合类型参数</a>
<br><br><a href="${pageContext.request.contextPath }/demo/login.jsp">登录</a>
<br><br><a href="${pageContext.request.contextPath }/demo/addgoods.jsp">添加商品</a>
<br><br><a href="${pageContext.request.contextPath }/demo/fileupload.jsp">文件上传</a>
<br><br><a href="${pageContext.request.contextPath }/demo/multifileupload.jsp">多文件上传</a>
</body>
</html>